//
//  GlobalManager.h
//  Dresshere
//
//  Created by ZhangPeng on 2017/12/28.
//  Copyright © 2017年 张朋. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Version;
@class Vip;
@class User;

@interface GlobalManager : NSObject

@property (strong, nonatomic) Version *version;
@property (strong, nonatomic) Vip *vip;
@property (strong, nonatomic) NSArray *supportCitiesArray;
@property (strong, nonatomic) NSArray *logisticsArray;
@property (strong, nonatomic) User *user;
@property (assign, nonatomic) NSInteger cartNumber;
@property (assign, nonatomic) NSInteger notificationsUnreadCount;
@property (strong, nonatomic) NSArray *refreshImagesArray;
@property (assign, nonatomic) CGFloat deposit; //押金

+ (GlobalManager *)shareGlobalManager;

- (void)refreshVersion; //获取当前最新版本号
- (void)refreshSupportCities; //获取支持商旅专送的城市列表
- (void)refreshlogistics; //获取物流类别
- (void)refreshBasicInfoAndBlock:(void (^)(id data, NSError *error))block; //获取用户基本信息
- (void)refreshVIPInfoAndBlock:(void (^)(id data, NSError *error))block; //获取用户会员订阅信息
- (void)refreshCartNumberAndBlock:(void (^)(id data, NSError *error))block; //刷新购物车数量
- (void)refreshNotificationsUnreadCountAndBlock:(void (^)(id data, NSError *error))block; //获取用户通知未读数量

- (void)upyunUploadImage:(UIImage *)image andBlock:(void (^)(id data, NSError *error))block; //又拍云上传图片

- (void)refreshDepositAndBlock:(void (^)(id data, NSError *error))block; //获取用户当前押金

@end
